Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install script #1174

Draft
wants to merge 31 commits into
base: develop
Choose a base branch
from
Draft

Install script #1174

wants to merge 31 commits into from

Conversation

Taeir
Copy link
Contributor

@Taeir Taeir commented Aug 11, 2023

This PR aims to make quick setup of a development/production environment for QPixel easier by providing an extensive install script, which leads the user through the various parts of the installation.

  • Install
    • Check ruby + version
      • Install ruby (if rbenv/rvm present)
      • Install rbenv (if neither rbenv/rvm present)
    • Check redis
    • Check mysql
    • Check required libraries?
  • Setup
    • Setup database
    • Setup redis
    • Setup storage
    • Create initial community
    • Create initial user

Examples

Installing Ruby

❌ Ruby: not found
We recommend installing ruby using rbenv
Do you want to install rbenv now? [y/n] y

 --- INSTALLING RBENV ---

...

All done!
Note that this installer does NOT edit your shell configuration files:
1. Run `rbenv init' to view instructions on how to configure rbenv for your shell.
2. Launch a new terminal window after editing shell configuration files.

 ------------------------

✅ Ruby - rbenv: installed rbenv

🔶 To finish the setup of rbenv, run the following command and follow its instructions:

  rbenv init

After doing so, please close your terminal and open a new one, then rerun this install command.

Next run

❌ Ruby: not found
🔶 Ruby: detected rbenv
Do you want to install the latest ruby 3.x version using rbenv now? [y/n] y

 --- INSTALLING RUBY 3.2.2 USING RBENV ---

...

 -----------------------------------------

✅ Ruby - rbenv: installed ruby 3.2.2
✅ Ruby - rbenv: set ruby 3.2.2 as default for QPixel

Taeir added 30 commits August 11, 2023 19:43
- Add package installation for apt, homebrew, pacman, dnf
- Add mysql2 ruby gem installation
- Add bundle install
- Add bundler ruby gem installation
The _run function will output the command being run for better debugging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant